<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .radio-wrap {
      width: 100px;
      height: 50px
    }

    div {
      box-sizing: border-box;
    }

    .radio-wrap .radio-box {
      float: left;
      position: relative;
      width: 50px;
      height: 50px;
    }

    .radio-wrap .radio-box label {
      position: absolute;
      top: 10px;
      left: 10px;
      width: 30px;
      height: 30px;
      background-color: #ddd;
      box-shadow: 1px 3px 5px #ccc;
      border: 2px solid #eee;
      border-radius: 50%;
      text-align: center;
      line-height: 30px;
      color: #fff;
      cursor: pointer
    }

    .radio-wrap .radio-box input[type="radio"] {
      visibility: hidden;
    }

    .radio-wrap .radio-box input[type="radio"]:checked+label.male {
      background-color: #add8e6;
    }

    .radio-wrap .radio-box input[type="radio"]:checked+label.female {
      background-color: #d88fd8;
    }
  </style>
</head>

<body>
  <div class="radio-wrap">
    <div class="radio-box">
      <input type="radio" id="male" name="sex" value="male" checked />
      <label for="male" class="fa-mars male">男</label>
    </div>
    <div class="radio-box">
      <input type="radio" id="female" name="sex" value="female" />
      <label for="female" class="fa-venus female">女</label>
    </div>
  </div>

</body>

</html>